﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="coststatistics.aspx.cs" Inherits="WEB.T_bill.coststatistics" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style5
        {
            width: 484px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    费用统计
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <table width="100%">
        <tr>
            <td>
                <table style="width: 490px;" class="distance">
                    <tr>
                        <td style="text-align: center" align="justify">
                            <asp:Label ID="lblcheck" Text="委托单号" runat="server"></asp:Label>
                            <asp:TextBox ID="tbQuery" runat="server" Width="233px"></asp:TextBox>
                            <asp:Button ID="btnQuery" runat="server" Text="   查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
                            <asp:Button ID="btnHserch" runat="server" Text="高级搜索" OnClick="btnHserch_Click" CssClass="Submit_yellowbig" />
                        </td>
                    </tr>
                    <%
                        if (Session["高级搜索"].ToString() == "1")
                        {%>
                    <tr>
                        <td align="center">
                            <asp:DropDownList ID="ddlpayTypeID" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="1">应收</asp:ListItem>
                                <asp:ListItem Value="2">应付</asp:ListItem>
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlpayedID" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="0">未结</asp:ListItem>
                                <asp:ListItem Value="1">已结</asp:ListItem>
                                <asp:ListItem Value="2">部分已结</asp:ListItem>
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlaudit" runat="server" AutoPostBack="True">
                                <asp:ListItem Value="0">已审核</asp:ListItem>
                                <asp:ListItem Value="1">未审核</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Label ID="Label3" runat="server" Text="搜索录入人员"></asp:Label>
                            <asp:TextBox ID="tbEmpName" runat="server" AutoPostBack="True"></asp:TextBox>
                            <asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" CompletionInterval="300"
                                MinimumPrefixLength="1" ServiceMethod="GetCustomersName" TargetControlID="tbEmpName">
                            </asp:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="公司名称"></asp:Label>
                            <asp:TextBox ID="tbcID" runat="server" AutoPostBack="True"></asp:TextBox>
                            <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="GetCustomersName"
                                TargetControlID="tbcID" MinimumPrefixLength="1" CompletionInterval="300">
                            </asp:AutoCompleteExtender>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            <asp:Label ID="Label1" runat="server" Text="起始日期"></asp:Label>
                            <asp:TextBox ID="tbbegDate" runat="server" class="Wdate"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="结束日期"></asp:Label>
                            <asp:TextBox ID="tbendDate" runat="server" class="Wdate"></asp:TextBox>
                            <asp:Button ID="btnCheck" runat="server" Text="  搜 索" CssClass="Submit_Query" />
                        </td>
                    </tr>
                    <%} %>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvSheetInfo" runat="server" CellPadding="4" CssClass="distance"
                    DataKeyNames="sheetID" ForeColor="Black" GridLines="Vertical" OnSelectedIndexChanging="gvSheetInfo_SelectedIndexChanging"
                    Style="text-align: center" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE"
                    BorderStyle="None" BorderWidth="1px" Width="300px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetID" HeaderText="委托单号" />
                        <asp:TemplateField HeaderText="公司名称"></asp:TemplateField>
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
